package com.lg.java;

/**
 * 内存中 只加载一份class
 */
public class ClassDetail {
    static class TestC{}
    public static void main(String[] args) {
        TestC testC = new TestC();
        TestC testC2 = new TestC();
        Class<? extends TestC> aClass = testC.getClass();
        System.out.println(testC ==testC2);
        System.out.println(testC.getClass());
        System.out.println(testC.getClass() == testC2.getClass());
    }
}
